"use strict";

/*
 var uainfo=new UaInfo();  
    console.log(uainfo); 
    document.writeln("操作系统:" + uainfo.osinfo.osname);    
    document.writeln("操作系统版本:" + uainfo.osinfo.osver);   
    document.writeln("设备名称:" + uainfo.deviceinfo);  
    document.writeln("应用名称:" + uainfo.appinfo.appname);   
    document.writeln("应用版本:" + uainfo.appinfo.appver);   
    if(uainfo.hasApplePay){
        document.writeln("support apple pay");
    }
 */

$(function () {
  var UA = new UaInfo();
  alert(UA.appinfo.appname);
  if (UA.appinfo.appname === "wechat") {}
});